<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>数据与表达式</title>
  <script src="angular.js"></script>
</head>
<body>
  <!-- ng-app指定angular作用域  ng-init初始化数据值 -->
  <div ng-app="" ng-init="name='ion';pwd=123456;">
    <input type="text" ng-model="name">
    <!-- 注意ng-bind会拿name覆盖掉标签内的所有内容 -->
    <div ng-bind="name">我叫：xxx</div>
    <div>我叫：{{name}}</div>
  </div>
</body>
</html>